<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <!--    写法1，label不包裹表单控件，但labei标签for属性必须和表单控件id一致man-->
    <input type="radio" id = "man" name="sex">
    <label for="man">男</label>

    <!--    用labei包裹文字表单控件不需要属性-->
    <label><input type="radio" name="sex">女</label>

</body>
</html>